<%@page import="entities.MetaSeo"%>
<%@page import="java.util.TreeMap"%>
<%@page import="helpers.UrlHelper"%>

<%
TreeMap<String, String> check = (TreeMap<String, String>) request.getAttribute("check");
MetaSeo metaseo = (MetaSeo) request.getAttribute("metaseo");
String name = (String) request.getAttribute("name");
%>
<jsp:include page="/admin/layouts/header.jsp" />
<script type="text/javascript">
<!--
var name = "<%=name%>";
jQuery(document).ready(function () {
	jQuery(".maintabmenu li a[href*="+name+"]").parent().addClass("current");
	
	//Remove hide content content
	jQuery(".one_half.last ." + name).removeClass("hide");
	
	//set menu
	jQuery(".leftmenu ul li").removeClass("current");
	jQuery(".leftmenu ul li a.metaseo").parent().addClass("current");
	
	//Display view info
	var viewInfo = ["whois", "ip", "keyword", "rip"];
	if ( jQuery.inArray(name, viewInfo) > -1 ) {
		jQuery(".view-info").removeClass("hide");
	}
});
//-->
</script>

		<div class="maincontent noright">
        	<div class="maincontentinner">
                <ul class="maintabmenu multipletabmenu">
                	<li><a href="/admin/metaseo/contact">Page Contact</a></li>
                	<li><a href="/admin/metaseo/about">Page About Us</a></li>
                	<li><a href="/admin/metaseo/privacy">Page Privacy Policy</a></li>
                	
                	<li><a href="/admin/metaseo/info">Page Domain Info</a></li>
                	<li><a href="/admin/metaseo/adsense">Page Adsense Info</a></li>
                	<li><a href="/admin/metaseo/analytics">Page Analytics Info</a></li>
                	<li><a href="/admin/metaseo/whois">Page Whois Info</a></li>
                	<li><a href="/admin/metaseo/ip">Page Ip Info</a></li>
                	<li><a href="/admin/metaseo/keyword">Page Keyword Rank</a></li>
                	<li><a href="/admin/metaseo/rip">Page Reverse Ip (rip)</a></li>
                	<li><a href="/admin/metaseo/message">Page Message</a></li>
                	<li><a href="/admin/metaseo/domain-out">Page Out Domain</a></li>
                </ul><!--maintabmenu-->
                
                <div class="content">
					<jsp:include page="/admin/elements/message_box.jsp" />

                    <div class="contenttitle">
                    	<h2 class="form"><span>Page <%=name %></span></h2>
                    </div><!--contenttitle-->
                    
                    <br><br>
            
                    <form method="post" action="" class="stdform" id="edit_config_form">
                    	<div class="stdform2">
	                        <p>
	                        	<label>Meta Title</label>
	                            <span class="field">
	                            	<input type="text" class="mediuminput" name="title" id="s_title" value="<%=metaseo.getTitle() %>">
	                            	<% if (check.get("title") != null) { %>
										<label for="s_title" generated="true" class="error"><%=check.get("title") %></label>
									<% } %>
	                            </span>
	                        </p>
	                        
	                        <p>
	                        	<label>Meta Keywords</label>
	                            <span class="field">
	                            	<input type="text" class="longinput" name="keywords" id="s_keywords" value="<%=metaseo.getKeywords() %>">
	                            	<% if (check.get("keywords") != null) { %>
										<label for="s_keywords" generated="true" class="error"><%=check.get("keywords") %></label>
									<% } %>
	                            </span>
	                        </p>
	                        
	                        <p>
	                        	<label>Meta Description</label>
	                            <span class="field">
	                            	<textarea id="s_description" class="longinput" name="description"  rows="5" cols="80"><%=metaseo.getDescription() %></textarea>
	                            	<% if (check.get("description") != null) { %>
										<label for="s_description" generated="true" class="error"><%=check.get("description") %></label>
									<% } %>
	                            </span> 
	                        </p>
	                        
	                        <p>
	                        	<label>OgUrl</label>
	                            <span class="field">
	                            	<input type="text" class="longinput" name="ogurl" id="s_ogurl" value="<%=metaseo.getOgurl() %>">
	                            	<% if (check.get("ogurl") != null) { %>
										<label for="s_ogurl" generated="true" class="error"><%=check.get("ogurl") %></label>
									<% } %>
	                            </span>
	                        </p>
	                        
	                        <p>
	                        	<label>OgImage</label>
	                            <span class="field">
	                            	<input type="text" class="longinput" name="ogimage" id="s_ogimage" value="<%=metaseo.getOgimage() %>">
	                            	<% if (check.get("ogimage") != null) { %>
										<label for="s_ogimage" generated="true" class="error"><%=check.get("ogimage") %></label>
									<% } %>
	                            </span>
	                        </p>
                        </div>
                        
                        <br clear="all">
                        
                        <div class="view-info hide">
                        	<h3>View Info</h3>
                        	<br />
                        	<div class="stdform2">
	                        	<p>
		                        	<label>Info Meta Title</label>
		                            <span class="field">
		                            	<input type="text" class="mediuminput" name="titleInfo" id="s_titleInfo" value="<%=metaseo.getTitleInfo() %>">
		                            	<% if (check.get("titleInfo") != null) { %>
											<label for="s_titleInfo" generated="true" class="error"><%=check.get("titleInfo") %></label>
										<% } %>
		                            </span>
		                        </p>
		                        
		                        <p>
		                        	<label>Info Meta Keywords</label>
		                            <span class="field">
		                            	<input type="text" class="longinput" name="keywordsInfo" id="s_keywordsInfo" value="<%=metaseo.getKeywordsInfo() %>">
		                            	<% if (check.get("keywordsInfo") != null) { %>
											<label for="s_keywordsInfo" generated="true" class="error"><%=check.get("keywordsInfo") %></label>
										<% } %>
		                            </span>
		                        </p>
		                        
		                        <p>
		                        	<label>Info Meta Description</label>
		                            <span class="field">
		                            	<textarea id="s_descriptionInfo" class="longinput" name="descriptionInfo"  rows="5" cols="80"><%=metaseo.getDescriptionInfo() %></textarea>
		                            	<% if (check.get("descriptionInfo") != null) { %>
											<label for="s_descriptionInfo" generated="true" class="error"><%=check.get("descriptionInfo") %></label>
										<% } %>
		                            </span> 
		                        </p>
		                        
		                        <p>
		                        	<label>Info OgUrl</label>
		                            <span class="field">
		                            	<input type="text" class="longinput" name="ogurlInfo" id="s_ogurlInfo" value="<%=metaseo.getOgurlInfo() %>">
		                            	<% if (check.get("ogurlInfo") != null) { %>
											<label for="s_ogurlInfo" generated="true" class="error"><%=check.get("ogurlInfo") %></label>
										<% } %>
		                            </span>
		                        </p>
                        	</div>
                        </div>
                        
                        <br clear="all">
                        
                        <p class="stdformbutton">
                        	<button class="submit radius2">Submit Button</button>
                            <input type="reset" value="Reset Button" class="reset radius2">
                        </p>
                        
                    </form>
                    
                    <br clear="all">
                    
                    <jsp:include page="/admin/elements/content_replate_text.jsp" />
                    
                </div><!--content-->
                
            </div><!--maincontentinner-->
            
            <jsp:include page="/admin/elements/copyright.jsp" />
            
        </div>

<jsp:include page="/admin/layouts/footer.jsp" />